-- GENERATED SPELL FOR [Plague Monstrosity] --


function spell0_8522(pUnit, Event) --@Mighty Blow,n/a--
pUnit:FullCastSpellOnTarget(14099,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8522', 602, 1)
end

function Sorts_8522(pUnit, Event)
local choix_sorts_8522 = math.random(0, 0)
if choix_sorts_8522 == 0 then
pUnit:RegisterEvent('spell0_8522', 1, 1)
end
end

function mob8522_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8522', math.random(1500, 3000), 1)
end

function mob8522_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8522_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8522_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8522, 1, 'mob8522_Action')
RegisterUnitEvent(8522, 2, 'mob8522_Leave')
RegisterUnitEvent(8522, 3, 'mob8522_Kill')
RegisterUnitEvent(8522, 4, 'mob8522_Die')
